package com.ruoyi.machine.base.wearing.service;

import com.ruoyi.machine.base.wearing.domain.WearingPart;
import com.ruoyi.machine.base.wearing.domain.WearingPartCond;

import java.util.List;
/**
 * 易损件
 * 业务层接口
 */
public interface IWearingPartService {
    /**
     * 根据搜索条件所有易损件记录
     * @param cond 搜索条件
     * @return
     */
    List<WearingPart> selectWearingPartList(WearingPartCond cond);

    /**
     * 根据名称和规格查找易损件
     * @param wearingPartName
     * @param wearingPartSpecification
     * @return
     */
    public WearingPart selectWearingPartByName(String wearingPartName, String wearingPartSpecification);

    /**
     * 新增易损件记录
     * @param wearingPart
     * @return
     */
    int insertWearingPart(WearingPart wearingPart);

    /**
     * 修改易损件
     * @param wearingPart
     * @return
     */
    int updateWearingPart(WearingPart wearingPart);

    /**
     * 删除易损件记录
     * 仅修改删除标志
     * @param wearingPart
     * @return
     */
    int updateWearingPartDeleteFlag(WearingPart wearingPart);
}
